package cn.nawang.ebeim.api.domain;

import javax.annotation.Generated;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TbHeartLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_heart_log", catalog = "ebeim")
public class HeartLog implements java.io.Serializable {

  // Fields

  private Integer id;
  private String terminalId;
  private String srcId;
  private String msg;
  private String level;
  private String actUserId;
  private Long actTime;


  public HeartLog() {
    super();
  }

  /**
   * @param id
   * @param terminalId
   * @param actUserId
   * @param actTime
   */
  public HeartLog(Integer id, String terminalId, String actUserId, Long actTime) {
    super();
    this.id = id;
    this.terminalId = terminalId;
    this.actUserId = actUserId;
    this.actTime = actTime;
  }

  // Property accessors
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "id", unique = true, nullable = false)
  public Integer getId() {
    return this.id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  @Column(name = "terminal_id", length = 45)
  public String getTerminalId() {
    return this.terminalId;
  }

  public void setTerminalId(String terminalId) {
    this.terminalId = terminalId;
  }

  @Column(name = "src_id", nullable = false, length = 45)
  public String getSrcId() {
    return this.srcId;
  }

  public void setSrcId(String srcId) {
    this.srcId = srcId;
  }

  @Column(name = "msg", nullable = false, length = 65535)
  public String getMsg() {
    return this.msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }

  @Column(name = "level", nullable = false, length = 1)
  public String getLevel() {
    return this.level;
  }

  public void setLevel(String level) {
    this.level = level;
  }

  @Column(name = "act_user_id", nullable = false, length = 45)
  public String getActUserId() {
    return this.actUserId;
  }

  public void setActUserId(String actUserId) {
    this.actUserId = actUserId;
  }

  @Column(name = "act_time", nullable = false)
  public Long getActTime() {
    return this.actTime;
  }

  public void setActTime(Long actTime) {
    this.actTime = actTime;
  }

}
